package fr.uniscol.siecle.model;

import java.io.Serializable;

public class Programme implements Serializable, DonneeSiecle {

	private MEF mef = null;
	
	private Matiere matiere = null;
	
	private ModaliteElection modalite = null;
	
	private float horaire = 0.0f;

	public Programme() {
		super();
	}

	public Programme(MEF mef, Matiere matiere, ModaliteElection modalite) {
		super();
		this.mef = mef;
		this.matiere = matiere;
		this.modalite = modalite;
	}

	public MEF getMef() {
		return mef;
	}

	public void setMef(MEF mef) {
		this.mef = mef;
	}

	public Matiere getMatiere() {
		return matiere;
	}

	public void setMatiere(Matiere matiere) {
		this.matiere = matiere;
	}

	public ModaliteElection getModalite() {
		return modalite;
	}

	public void setModalite(ModaliteElection modalite) {
		this.modalite = modalite;
	}

	public float getHoraire() {
		return horaire;
	}

	public void setHoraire(float horaire) {
		this.horaire = horaire;
	}

	@Override
	public boolean equals(Object obj) {
		Programme p = (Programme)obj;
		
		return getMef().equals(p.getMef()) 
		&& getMatiere().equals(p.getMatiere())
		&& getModalite().equals(p.getModalite());
	}
}
